import request from "@/utils/request";

// 员工评价列表
export function listEvaluationEmployee(query) {
  return request({
    url: "/backAdmin/evaluationApi/employee/evaluation/list",
    method: "get",
    params: query,
  });
}
// 医院评价列表
export function listEvaluationMerchant(query) {
  return request({
    url: "/backAdmin/evaluationApi/merchant/evaluation/list",
    method: "get",
    params: query,
  });
}

// 服务投诉列表
export function listComplaintMerchant(query){
  return request({
    url: "/backAdmin/evaluationApi/merchant/service/complaint/list",
    method: "get",
    params: query,
  });
}



// 服务投诉列表
export function listComplaintService(query){
  return request({
    url: "/backAdmin/evaluationApi/service/complaint/list",
    method: "get",
    params: query,
  });
}




// 服务评价列表
export function listEvaluationService(query){
  return request({
    url: `/backAdmin/evaluationApi/service/evaluation/list`,
    method: "get",
    params: query,
  });
}



// 服务投诉回复
export function evaluationApiServiceComplaintReply(data){
  return request({
    url: `/backAdmin/evaluationApi/service/complaint/reply`,
    method: "post",
    data
  });
}






// 查询公告详细
export function getNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "get",
  });
}

// 新增公告
export function addNotice(data) {
  return request({
    url: "/system/notice",
    method: "post",
    data: data,
  });
}

// 修改公告
export function updateNotice(data) {
  return request({
    url: "/system/notice",
    method: "put",
    data: data,
  });
}

// 删除公告
export function delNotice(noticeId) {
  return request({
    url: "/system/notice/" + noticeId,
    method: "delete",
  });
}
